package com.gnar.dis;

import android.graphics.Bitmap;
import android.graphics.Rect;

public class Human extends Sprite {

	public Human(Bitmap bitmap, float startPosX, float startPosY) {
		super(bitmap, startPosX, startPosY);
		spriteType = type.HUMAN;
	}
	
	public void update(EventHandler event) {
		mPosX = mPosX + 4;
		mRect.set((int)mPosX,(int)mPosY, (int)mPosX + (int)mImage.getWidth(), (int)mPosY + (int)mImage.getHeight());
		if (mPosX > 800){
			spriteType = type.DEST_OB;
		}
	}
}
